package mest.service.cxj.impl;

import mest.VO.cxj.PlanOtherIncomeRecordVO;
import mest.entity.PlanOtherIncomeRecord;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import mest.dao.cxj.PlanOtherIncomeRecordDao;
import mest.service.cxj.PlanOtherIncomeRecordService;

import java.util.List;

@Service
public class PlanOtherIncomeRecordServiceImpl implements PlanOtherIncomeRecordService {

    @Resource
    private PlanOtherIncomeRecordDao planOtherIncomeRecordDao;

    @Override
    public Integer insertPlanOtherIncomeRecord(PlanOtherIncomeRecord poir, String theirDb) {
        return planOtherIncomeRecordDao.insertPlanOtherIncomeRecord(poir, theirDb);
    }

    @Override
    public List<PlanOtherIncomeRecordVO> selectAllPlanOtherIncomeRecordById(Integer page, Integer limit, Integer poicId, String theirDb) {
        return planOtherIncomeRecordDao.selectAllPlanOtherIncomeRecordById((page-1)*limit, limit, poicId, theirDb);
    }

    @Override
    public Integer selectCountPlanOtherIncomeRecordById(Integer poicId, String theirDb) {
        return planOtherIncomeRecordDao.selectCountPlanOtherIncomeRecordById(poicId, theirDb);
    }
}
